﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="upload.aspx.cs" Inherits="JumbotCms.Modules.Version.AdminSource._upload" %>
<%@ Register Assembly="Jumbot.Control" Namespace="Jumbot.Control" TagPrefix="Jumbot" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>附件上传</title>
<style type="text/css">
body {
	margin: 0px;
}
</style>
<script type="text/javascript">
function OnCompleted(fileName){
	var path = fileName.split('|')[0];
	var oldname = fileName.split('|')[1];
	var filesize = fileName.split('|')[2];
	var s = oldname.lastIndexOf(".");
	var e = oldname.substring(s+1).toLowerCase();
	var newname = path + "." + e;
	parent.AttachmentOperater<%=_ipt %>(newname,e,filesize);
	window.location.reload();
}
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div id="SWFUpload">
        <Jumbot:FlashUpload ID="flashUpload" runat="server" FileTypeDescription="*.*" UploadPage="/FlashUpload.asx"
            Args="" FinalFileName="temp.jpg" UploadFileSizeLimit="1800000">
        </Jumbot:FlashUpload>
        </div>
    </form>
</body>
</html>
